package com.chinacoal.microservice.fallback;

import com.chinacoal.microservice.DataCenterClient;
import com.chinacoal.microservice.pojo.CcmsSmartleasingDeviceManagement;
import com.chinacoal.microservice.pojo.CcmsSmartleasingHistoricalPayment;
import com.chinacoal.microservice.pojo.CcmsSmartleasingRegionalAnalysis;
import com.chinacoal.microservice.pojo.DataCenter;
import com.chinacoal.microservice.util.CodeMsg;
import com.chinacoal.microservice.util.Result;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author zhuliang
 * @version V1.0
 * @Description: 数据中心和可视化页面，异常回退类
 * @date 2020-12-29 10:10
 */
@Component
public class DataCenterClientFallback implements DataCenterClient {
    /**
     * @Description: 费用概况
     * @author zhuliang
     * @date 2020/12/29 10:20
     */
    @Override
    public Result<DataCenter> costOverview() {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 得到综合分析数据
     * @author zhuliang
     * @date 2020/12/31 10:23
     */
    @Override
    public Result<List<CcmsSmartleasingHistoricalPayment>> getComprehensiveAnalysisData(String year, Integer type) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 得到区域分析数据
     * @author zhuliang
     * @date 2020/12/31 10:23
     */
    @Override
    public Result<List<CcmsSmartleasingRegionalAnalysis>> getAreaAnalysisData(Integer type) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 得到房间面积数据
     * @author zhuliang
     * @date 2021/1/8 10:03
     */
    @Override
    public Result<DataCenter> getAreaData(Integer type) {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 可视化页面房间统计数据
     * @author zhuliang
     * @date 2021/1/11 16:27
     */
    @Override
    public Result<List<CcmsSmartleasingDeviceManagement>> getVisualizationRoomData() {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 得到所有有记录的年份
     * @author zhuliang
     * @date 2021/1/15 16:21
     */
    @Override
    public Result<List<String>> getAllByYear() {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }

    /**
     * @Description: 可视化页面房间统计数据（右）
     * @author zhuliang
     * @date 2021/1/26 18:38
     */
    @Override
    public Result<CcmsSmartleasingDeviceManagement> getVisualizationStatisticalData() {
        return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
    }
}
